builder: Allow template parsing to be used with subclasses
authorBenjamin Otte <otte@redhat.com>
Fri, 31 Mar 2023 11:01:47 +0000 (13:01 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 1 Apr 2023 18:49:40 +0000 (20:49 +0200)
commitbeba8be6b5134a5916bd7372006628c98efbdb7b
tree42c73faefe028fbd8f948645648447456da90b9e
parent170d49f06724113cd27232bbc926c81f459b3fa8
builder: Allow template parsing to be used with subclasses

Whenn setting gtk_builder_set_allow_template_parents(), the builder
instance will accept
  <template class="GtkWidget">
for a GtkBox instance.

It's going to be used with the new GtkColumnViewCell objects, so that
it's backwards compatible with ui file factories that use GtkListItem.
gtk/gtkbuilder.c
gtk/gtkbuilderparser.c
gtk/gtkbuilderprivate.h